<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'kpiWarehouse.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet"
	href="${staticPath }/static/bootstrap/bootstrap.min.css" />

<!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
<link rel="stylesheet"
	href="${staticPath }/static/bootstrap/bootstrap-theme.min.css" />
</head>
<body>
	<div style="width:80%;  margin: 0 auto;margin-top:25px">
		<h4 style="margin-top:25px;color:blue">注：每发一单商品，记1分；每打一个包裹，记1.35分；每入库一个现货商品，记0.1分；每入库一个在途商品，记0.5分；每协助快递公司取件一个包裹，记0.1分</h4>
		<table class="table table-bordered">
			<tr class="info">
				<td>日期(月)</td>
				<td>考核人员</td>
				<td>发货商品总数</td>
				<td>打包包裹总数</td>
				<td>现货入库商品总数</td>
				<td>在途入库商品总数</td>
				<td>协助快递总数</td>
				<td>考核总分</td>
			</tr>
			<c:set var="tjNum" value="1" />
			<c:forEach items="${kpiWarehouseList}" var="kpiWarehouse">
				<tr>
					<c:if test="${tjNum == 1}">
						<td rowspan=${shipMap[kpiWarehouse.dimensionDate].count} style="text-align:center;vertical-align:middle">${kpiWarehouse.dimensionDate}</td>
					</c:if>
					<td>${kpiWarehouse.personnel}</td>
					<td>${kpiWarehouse.deliverNum}</td>
					<td>${kpiWarehouse.packagerNum}</td>
					<td>${kpiWarehouse.putInNum}</td>
					<td>${kpiWarehouse.putTransInNum}</td>
					<td>${kpiWarehouse.assistExpressNum}</td>
					<td>${kpiWarehouse.totalScore}</td>
				</tr>
				<c:if test="${tjNum == shipMap[kpiWarehouse.dimensionDate].count}">
					<c:set var="tjNum" value="0" />
				</c:if>
				<c:set var="tjNum" value="${tjNum+1}" />
			</c:forEach>
		</table>
	</div>
</body>
</html>
